package com.laolang.pluto.module.sys.consts.logic;

import com.laolang.pluto.common.consts.IBizCode;

/**
 * @author laolang
 * @date 2021-08-12 04:26
 */
public enum SysBizCode implements IBizCode {
    /**
     * 00101 sys
     */
    TENANT_NAME_EXIST("00101001", "该租户名已存在"),
    USER_NAME_EXIST("00101002", "该用户名已存在"),

    /**
     * 00102 project
     */
    PROJECT_NAME_EXIST("00102001", "该项目名称已存在"),
    PROJECT_NOT_EXIST("00102002", "该项不存在");

    private final String code;
    private final String msg;

    SysBizCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
